package com.application.magazine;

import java.util.List;

import com.roscopeco.ormdroid.Entity;

public class Category extends Entity {
  public int id;
  public String name;
  
  public Category() {
    this(null);
  }
  
  public Category(String name) {
	  this.name = name;
  }
  
  public List<Magazine> magazines() {
	    return query(Magazine.class).where("cat").eq(id).executeMulti();
	 }
}
